package cn.jingyinghui.testlambda.testlambdaimpl;

import cn.jingyinghui.testlambda.AppleFormatterInter;
import cn.jingyinghui.testlambda.pojo.Apple;

public class AppleWeightFormatter implements AppleFormatterInter {
    @Override
    public String accept(Apple apple) {
        return "一个苹果重 " + apple.getWeight()+" 克";
    }
}
